package tongkeyon.behavior.template;

/**
 * @Author: keyon <tongkeyon@163.com>
 * @Date: 2020/2/25 15:56
 * @Version 1.0
 */
public abstract class Cooking {

    protected abstract void buyMaterial();
    protected abstract void cleanMaterial();
    protected abstract void cookMaterial();

    public void cook(){
        buyMaterial();
        System.out.println("=============买菜结束=============");
        cleanMaterial();
        System.out.println("=============洗菜结束=============");
        cookMaterial();
        System.out.println("=============烧菜结束=============");



    }

}
